package abc.config;

import abc.model.DSInfo;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "spring.datasource.dynamic")
public class DatasourceConfigure {
	private Map<String, DSInfo> datasource;
	private String primary;
}
